# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-panel
pkgver=1.27.2
pkgrel=1
pkgdesc="The MATE panel is the area on your desktop from which you can run applications"
url="https://github.com/mate-desktop/mate-panel"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
depends="dconf-editor mate-common" # added dconf-editor due to issue #15428
makedepends="
	dbus-glib-dev
	dconf-dev
	intltool
	itstool
	libcanberra-dev
	libice-dev
	libmateweather-dev
	librsvg-dev
	libsm-dev
	libtool
	libwnck3-dev
	libxml2-utils
	mate-desktop-dev
	mate-menus-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-panel-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
93431af5ffd1241c5fb56dd0a60eeba2de89e745502575cfd8f281700345689edc50ec653a6d9b1472a6d0e9d7d09a7e1439627fcacfdc627f187551cef21b6f  mate-panel-1.27.2.tar.xz
"
